One While Loop Is Overwriting another While Loop